	.text
	.org	0

	;; rare unportable instructions which do operation on memory byte
	;; changing this byte and copying result to specified register
	RLC	(ix+8),a
	RLC	(ix+8),b
	RLC	(ix+8),c
	RLC	(ix+8),d
	RLC	(ix+8),e
	RLC	(ix+8),h
	RLC	(ix+8),l
	RLC	(iy+8),a
	RLC	(iy+8),b
	RLC	(iy+8),c
	RLC	(iy+8),d
	RLC	(iy+8),e
	RLC	(iy+8),h
	RLC	(iy+8),l

	RRC	(ix+8),a
	RRC	(ix+8),b
	RRC	(ix+8),c
	RRC	(ix+8),d
	RRC	(ix+8),e
	RRC	(ix+8),h
	RRC	(ix+8),l
	RRC	(iy+8),a
	RRC	(iy+8),b
	RRC	(iy+8),c
	RRC	(iy+8),d
	RRC	(iy+8),e
	RRC	(iy+8),h
	RRC	(iy+8),l

	RL	(ix+8),a
	RL	(ix+8),b
	RL	(ix+8),c
	RL	(ix+8),d
	RL	(ix+8),e
	RL	(ix+8),h
	RL	(ix+8),l
	RL	(iy+8),a
	RL	(iy+8),b
	RL	(iy+8),c
	RL	(iy+8),d
	RL	(iy+8),e
	RL	(iy+8),h
	RL	(iy+8),l

	RR	(ix+8),a
	RR	(ix+8),b
	RR	(ix+8),c
	RR	(ix+8),d
	RR	(ix+8),e
	RR	(ix+8),h
	RR	(ix+8),l
	RR	(iy+8),a
	RR	(iy+8),b
	RR	(iy+8),c
	RR	(iy+8),d
	RR	(iy+8),e
	RR	(iy+8),h
	RR	(iy+8),l

	SLA	(ix+8),a
	SLA	(ix+8),b
	SLA	(ix+8),c
	SLA	(ix+8),d
	SLA	(ix+8),e
	SLA	(ix+8),h
	SLA	(ix+8),l
	SLA	(iy+8),a
	SLA	(iy+8),b
	SLA	(iy+8),c
	SLA	(iy+8),d
	SLA	(iy+8),e
	SLA	(iy+8),h
	SLA	(iy+8),l

	SRA	(ix+8),a
	SRA	(ix+8),b
	SRA	(ix+8),c
	SRA	(ix+8),d
	SRA	(ix+8),e
	SRA	(ix+8),h
	SRA	(ix+8),l
	SRA	(iy+8),a
	SRA	(iy+8),b
	SRA	(iy+8),c
	SRA	(iy+8),d
	SRA	(iy+8),e
	SRA	(iy+8),h
	SRA	(iy+8),l

	SLI	(ix+8),a
	SLI	(ix+8),b
	SLI	(ix+8),c
	SLI	(ix+8),d
	SLI	(ix+8),e
	SLI	(ix+8),h
	SLI	(ix+8),l
	SLI	(iy+8),a
	SLI	(iy+8),b
	SLI	(iy+8),c
	SLI	(iy+8),d
	SLI	(iy+8),e
	SLI	(iy+8),h
	SLI	(iy+8),l

	SRL	(ix+8),a
	SRL	(ix+8),b
	SRL	(ix+8),c
	SRL	(ix+8),d
	SRL	(ix+8),e
	SRL	(ix+8),h
	SRL	(ix+8),l
	SRL	(iy+8),a
	SRL	(iy+8),b
	SRL	(iy+8),c
	SRL	(iy+8),d
	SRL	(iy+8),e
	SRL	(iy+8),h
	SRL	(iy+8),l

	RES	0,(ix+8),a
	RES	0,(ix+8),b
	RES	0,(ix+8),c
	RES	0,(ix+8),d
	RES	0,(ix+8),e
	RES	0,(ix+8),h
	RES	0,(ix+8),l
	RES	0,(iy+8),a
	RES	0,(iy+8),b
	RES	0,(iy+8),c
	RES	0,(iy+8),d
	RES	0,(iy+8),e
	RES	0,(iy+8),h
	RES	0,(iy+8),l
	RES	1,(ix+8),a
	RES	1,(ix+8),b
	RES	1,(ix+8),c
	RES	1,(ix+8),d
	RES	1,(ix+8),e
	RES	1,(ix+8),h
	RES	1,(ix+8),l
	RES	1,(iy+8),a
	RES	1,(iy+8),b
	RES	1,(iy+8),c
	RES	1,(iy+8),d
	RES	1,(iy+8),e
	RES	1,(iy+8),h
	RES	1,(iy+8),l
	RES	2,(ix+8),a
	RES	2,(ix+8),b
	RES	2,(ix+8),c
	RES	2,(ix+8),d
	RES	2,(ix+8),e
	RES	2,(ix+8),h
	RES	2,(ix+8),l
	RES	2,(iy+8),a
	RES	2,(iy+8),b
	RES	2,(iy+8),c
	RES	2,(iy+8),d
	RES	2,(iy+8),e
	RES	2,(iy+8),h
	RES	2,(iy+8),l
	RES	3,(ix+8),a
	RES	3,(ix+8),b
	RES	3,(ix+8),c
	RES	3,(ix+8),d
	RES	3,(ix+8),e
	RES	3,(ix+8),h
	RES	3,(ix+8),l
	RES	3,(iy+8),a
	RES	3,(iy+8),b
	RES	3,(iy+8),c
	RES	3,(iy+8),d
	RES	3,(iy+8),e
	RES	3,(iy+8),h
	RES	3,(iy+8),l
	RES	4,(ix+8),a
	RES	4,(ix+8),b
	RES	4,(ix+8),c
	RES	4,(ix+8),d
	RES	4,(ix+8),e
	RES	4,(ix+8),h
	RES	4,(ix+8),l
	RES	4,(iy+8),a
	RES	4,(iy+8),b
	RES	4,(iy+8),c
	RES	4,(iy+8),d
	RES	4,(iy+8),e
	RES	4,(iy+8),h
	RES	4,(iy+8),l
	RES	5,(ix+8),a
	RES	5,(ix+8),b
	RES	5,(ix+8),c
	RES	5,(ix+8),d
	RES	5,(ix+8),e
	RES	5,(ix+8),h
	RES	5,(ix+8),l
	RES	5,(iy+8),a
	RES	5,(iy+8),b
	RES	5,(iy+8),c
	RES	5,(iy+8),d
	RES	5,(iy+8),e
	RES	5,(iy+8),h
	RES	5,(iy+8),l
	RES	6,(ix+8),a
	RES	6,(ix+8),b
	RES	6,(ix+8),c
	RES	6,(ix+8),d
	RES	6,(ix+8),e
	RES	6,(ix+8),h
	RES	6,(ix+8),l
	RES	6,(iy+8),a
	RES	6,(iy+8),b
	RES	6,(iy+8),c
	RES	6,(iy+8),d
	RES	6,(iy+8),e
	RES	6,(iy+8),h
	RES	6,(iy+8),l
	RES	7,(ix+8),a
	RES	7,(ix+8),b
	RES	7,(ix+8),c
	RES	7,(ix+8),d
	RES	7,(ix+8),e
	RES	7,(ix+8),h
	RES	7,(ix+8),l
	RES	7,(iy+8),a
	RES	7,(iy+8),b
	RES	7,(iy+8),c
	RES	7,(iy+8),d
	RES	7,(iy+8),e
	RES	7,(iy+8),h
	RES	7,(iy+8),l

	SET	0,(ix+8),a
	SET	0,(ix+8),b
	SET	0,(ix+8),c
	SET	0,(ix+8),d
	SET	0,(ix+8),e
	SET	0,(ix+8),h
	SET	0,(ix+8),l
	SET	0,(iy+8),a
	SET	0,(iy+8),b
	SET	0,(iy+8),c
	SET	0,(iy+8),d
	SET	0,(iy+8),e
	SET	0,(iy+8),h
	SET	0,(iy+8),l
	SET	1,(ix+8),a
	SET	1,(ix+8),b
	SET	1,(ix+8),c
	SET	1,(ix+8),d
	SET	1,(ix+8),e
	SET	1,(ix+8),h
	SET	1,(ix+8),l
	SET	1,(iy+8),a
	SET	1,(iy+8),b
	SET	1,(iy+8),c
	SET	1,(iy+8),d
	SET	1,(iy+8),e
	SET	1,(iy+8),h
	SET	1,(iy+8),l
	SET	2,(ix+8),a
	SET	2,(ix+8),b
	SET	2,(ix+8),c
	SET	2,(ix+8),d
	SET	2,(ix+8),e
	SET	2,(ix+8),h
	SET	2,(ix+8),l
	SET	2,(iy+8),a
	SET	2,(iy+8),b
	SET	2,(iy+8),c
	SET	2,(iy+8),d
	SET	2,(iy+8),e
	SET	2,(iy+8),h
	SET	2,(iy+8),l
	SET	3,(ix+8),a
	SET	3,(ix+8),b
	SET	3,(ix+8),c
	SET	3,(ix+8),d
	SET	3,(ix+8),e
	SET	3,(ix+8),h
	SET	3,(ix+8),l
	SET	3,(iy+8),a
	SET	3,(iy+8),b
	SET	3,(iy+8),c
	SET	3,(iy+8),d
	SET	3,(iy+8),e
	SET	3,(iy+8),h
	SET	3,(iy+8),l
	SET	4,(ix+8),a
	SET	4,(ix+8),b
	SET	4,(ix+8),c
	SET	4,(ix+8),d
	SET	4,(ix+8),e
	SET	4,(ix+8),h
	SET	4,(ix+8),l
	SET	4,(iy+8),a
	SET	4,(iy+8),b
	SET	4,(iy+8),c
	SET	4,(iy+8),d
	SET	4,(iy+8),e
	SET	4,(iy+8),h
	SET	4,(iy+8),l
	SET	5,(ix+8),a
	SET	5,(ix+8),b
	SET	5,(ix+8),c
	SET	5,(ix+8),d
	SET	5,(ix+8),e
	SET	5,(ix+8),h
	SET	5,(ix+8),l
	SET	5,(iy+8),a
	SET	5,(iy+8),b
	SET	5,(iy+8),c
	SET	5,(iy+8),d
	SET	5,(iy+8),e
	SET	5,(iy+8),h
	SET	5,(iy+8),l
	SET	6,(ix+8),a
	SET	6,(ix+8),b
	SET	6,(ix+8),c
	SET	6,(ix+8),d
	SET	6,(ix+8),e
	SET	6,(ix+8),h
	SET	6,(ix+8),l
	SET	6,(iy+8),a
	SET	6,(iy+8),b
	SET	6,(iy+8),c
	SET	6,(iy+8),d
	SET	6,(iy+8),e
	SET	6,(iy+8),h
	SET	6,(iy+8),l
	SET	7,(ix+8),a
	SET	7,(ix+8),b
	SET	7,(ix+8),c
	SET	7,(ix+8),d
	SET	7,(ix+8),e
	SET	7,(ix+8),h
	SET	7,(ix+8),l
	SET	7,(iy+8),a
	SET	7,(iy+8),b
	SET	7,(iy+8),c
	SET	7,(iy+8),d
	SET	7,(iy+8),e
	SET	7,(iy+8),h
	SET	7,(iy+8),l
